/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GameObject;

import java.awt.Graphics2D;
import java.util.Timer;

/**
 *
 * @author NGUYEN VAN TAM
 */
public class VisibleGameEntity extends VisibleGameObject{
    public boolean Init(int _numberSprite[], int _Width,int _Heigth,String Strresource[],int isprite, int _nDelay)
    {
        return true;
    }
    
    public void Update(Timer gameTime)
    {
        for (int i = 0; i < _sprite.length; i++)
        {
            _sprite[i].update(gameTime);
        }
    }

    public void Update(Timer gameTime,int x, int y, int w, int h)
    {
        for (int i = 0; i < _sprite.length; i++)
        {
            _sprite[i].update(gameTime,x,y,w,h,_sprite[i]._selectedIndex);
        }
    }

    public void Draw(Timer gameTime,Graphics2D graphic)
    {
        for (int i = 0; i < _sprite.length; i++)
        {
            _sprite[i].Draw(gameTime,graphic);
        }
    }
    
}
